package com.ssm.design.chain;

import com.ssm.design.chain.handler.v2.Node01Handler;
import com.ssm.design.chain.handler.v2.Node02Handler;
import com.ssm.design.chain.handler.v2.Node03Handler;

public class DefaultOrderChainBuilder {

    public DefaultOrderChainBuilder() {
    }

    public OrderHandlerChain build() {
        OrderHandlerChain chain = new OrderHandlerChain();
        chain.addLast(new Node01Handler());
        chain.addLast(new Node02Handler());
        chain.addLast(new Node03Handler());
        return chain;
    }
}